/* ===== Broker Verify design system (v2 — "ink + cream + verified-green") ===== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Archivo+Black&family=Oswald:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* core palette */
    --ink: #161616;          /* industrial black */
    --ink-2: #1D1D1D;        /* dark section */
    --ink-3: #272727;        /* dark section, alt */
    --paper: #F1F0EC;        /* page background (concrete) */
    --paper-card: #FFFFFF;   /* card background */
    --panel: #FFFFFF;        /* alias used by app screens */
    --line: #DCDAD3;         /* borders on concrete */
    --line-ink: rgba(255,255,255,.16); /* borders on dark */

    --accent: #FF6A00;       /* safety orange — actions & brand */
    --accent-deep: #D14900;  /* orange readable as text on light */
    --accent-soft: #FFE9DC;

    --text: #101A24;
    --muted: #5A6068;        /* muted text on cream */
    --steel: #5A6068;        /* alias used by app screens */
    --muted-ink: #9FB2C0;    /* muted text on dark */

    --verified: #1B8E5A;     /* primary / verified green */
    --verified-soft: #E3F1E8;
    --good: #1B8E5A;         /* alias (A grades, verified) */
    --amber: #C9852A;
    --amber-soft: #F6ECD8;
    --warn: #B4791F;         /* short-pay / caution */
    --bad: #B5402F;          /* unpaid / negative */

    --maxw: 1140px;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(15, 26, 36, .05), 0 18px 40px -24px rgba(15, 26, 36, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
    background: var(--paper);
    color: var(--text);
    font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
    font-family: "Oswald", "Archivo", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: .005em;
    text-transform: uppercase;
    line-height: 1.04;
    color: var(--ink);
    margin: 0 0 .5rem;
}
h3, h4 { font-family: "Archivo", "Public Sans", sans-serif; font-weight: 700; text-transform: none; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono, .docket {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-feature-settings: "tnum" 1;
}

/* ---- layout primitives ---- */
.container, .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.lead.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---- buttons ---- */
.btn {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    border-radius: 7px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #141414; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: #FF7E1F; color: #141414; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2d3a; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px,-2px); }

/* ---- generic content card (app screens: account, notifications, claims) ---- */
.card {
    background: var(--paper-card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 26px 26px 28px;
    box-shadow: 6px 6px 0 rgba(22,22,22,.92);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(22,22,22,.92); }
.eyebrow {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--accent); flex-shrink: 0; }

/* ---- grade chips (neutral, attributed framing per PR-4) ---- */
.grade {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: 8px;
    color: #fff;
}
.grade--a { background: var(--verified); }
.grade--b { background: #2f9b68; }
.grade--c { background: var(--amber); }
.grade--d { background: #c2410c; }
.grade--f { background: var(--bad); }
.grade--na { background: var(--steel); width: auto; padding: 0 .7rem; font-size: .8rem; }

/* ---- marketing header (dark, sticky) ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 26, 36, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
/* ---- brand badge: ONE shared logo lockup used in every header & footer
   (marketing / app / auth / default). Cream chip, ink wordmark, green dot. ---- */
.mark {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 5px 12px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mark b { color: var(--accent); font-weight: 800; }
.brand .by { font-size: 11px; color: var(--muted-ink); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted-ink); font-size: 14px; font-weight: 500; }
.nav a.btn-primary { color: #141414; } /* header CTA: .nav a outspecifies .btn-primary — keep the wording dark on orange */
.nav a:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand .by { display: none; } }

/* ---- marketing footer (dark) ---- */
.site-footer { background: #0B141C; color: var(--muted-ink); padding: 46px 0 40px; border-top: 1px solid var(--line-ink); font-size: .9rem; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
/* brand badge (.mark) is styled globally above — shared across all layouts */
.foot-brand p { font-size: 13px; margin-top: 10px; max-width: 320px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--muted-ink); }
.foot-links a:hover { color: #fff; }
.foot-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-ink); font-size: 12px; color: #6E808D; font-family: "IBM Plex Mono", monospace; }
.foot-disc { font-family: "Public Sans", sans-serif; font-size: 12px; line-height: 1.6; color: #6E808D; max-width: 760px; margin: 0 0 16px; }
.foot-disc a { color: #8FA3B0; text-decoration: underline; }

/* ---- legal pages ---- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--text); }
.draft-banner {
    background: var(--amber-soft);
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--warn);
}

/* ---- pricing ---- */
.price-amt { font-family: "Archivo", sans-serif; font-size: 2.6rem; font-weight: 800; }
.price-unit { color: var(--muted); font-size: .95rem; }
.price-feats { list-style: none; padding: 0; margin: 1rem 0 0; }
.price-feats li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.price-feats li:last-child { border-bottom: none; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- audience landing pages (for-brokers / for-shippers) ---- */
.ap-hero { background: var(--ink); color: #fff; padding: 78px 0 70px; position: relative; overflow: hidden; }
.ap-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(820px 360px at 82% -10%, rgba(27,142,90,.18), transparent 60%); }
.ap-hero .container { position: relative; z-index: 1; }
.ap-eyebrow { font-family: "Oswald", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.ap-hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; max-width: 19ch; }
.ap-lead { font-size: 18px; line-height: 1.55; color: #D6E0E8; max-width: 64ch; margin: 0 0 28px; }
.ap-lead strong { color: #fff; font-weight: 600; }
.ap-lead em { font-style: normal; color: var(--verified); font-weight: 600; }
.ap-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ap-h2 { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; max-width: 22ch; margin: 8px 0 12px; }
.ap-sub { color: var(--muted); font-size: 17px; max-width: 64ch; margin: 0 0 4px; }
.ap-alt { background: var(--paper-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-cards { margin-top: 34px; }
/* audience content cards: dark accent-card system (match home/pricing) */
.ap-cards .card { background: var(--ink); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 rgba(22,22,22,.14); }
.ap-cards .card:hover { box-shadow: 9px 9px 0 var(--accent); }
.ap-cards .card h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 10px 0 8px; color: #fff; }
.ap-cards .card p { color: var(--muted-ink); font-size: 14.5px; line-height: 1.55; }
.ap-cards .card .eyebrow { color: var(--accent); }
.ap-cards .card .price-amt { color: var(--accent); }
.ap-cards .card .price-unit { color: var(--muted-ink); }
.ap-cards .card .price-feats li { border-bottom-color: var(--line-ink); }
.ap-feature { border: 2px solid var(--accent); }
.ap-cards .card.ap-feature { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.ap-aside { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 14px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.ap-aside h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: .6rem; color: #fff; }
.ap-aside p { color: var(--muted-ink); font-size: 15px; line-height: 1.55; }
.ap-cta-full { display: block; width: 100%; justify-content: center; text-align: center; margin-top: 1.25rem; }
.ap-closer { background: var(--ink); color: #fff; text-align: center; padding: 70px 0; }
.ap-closer h2 { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3.6vw, 40px); color: #fff; max-width: 24ch; margin: 0 auto 14px; line-height: 1.06; }
.ap-closer p { color: var(--muted-ink); font-family: "IBM Plex Mono", monospace; font-size: 14px; margin: 0 auto 24px; }
.ap-cta-center { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---- how-it-works flow band (dark feature band, audience-tailored stepper) ---- */
.flow-band { background: var(--ink); color: #fff; padding: 74px 0; position: relative; overflow: hidden; }
.flow-band .container { position: relative; z-index: 1; }
.flow-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.flow-band .ap-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.flow-band h2 { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; color: #fff; margin: 6px 0 12px; }
.flow-sub { color: var(--muted-ink); font-size: 16px; line-height: 1.55; margin: 0; }

.flow-steps { display: flex; gap: 38px; align-items: stretch; }
.flow-step { position: relative; flex: 1 1 0; background: var(--ink-3); border: 1px solid var(--line-ink); border-radius: 16px; padding: 30px 22px 24px; text-align: center; }
.flow-step::after { content: "\2192"; position: absolute; right: -28px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
.flow-step:last-child::after { content: none; }
.flow-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #141414; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; border: 2px solid var(--ink); }
.flow-step .flow-lbl { font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.flow-step h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #fff; margin: 0 0 8px; }
.flow-step p { color: var(--muted-ink); font-size: 13px; line-height: 1.5; margin: 0; }

.flow-contrast { margin-top: 34px; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 14px; padding: 20px 26px; display: flex; flex-direction: column; gap: 9px; }
.flow-contrast .flow-row { font-size: 15px; line-height: 1.5; color: var(--muted-ink); }
.flow-contrast .flow-mark { font-weight: 800; margin-right: 8px; }
.flow-contrast .flow-old .flow-mark { color: var(--muted-ink); }
.flow-contrast .flow-old b { color: #fff; font-weight: 700; }
.flow-contrast .flow-new { color: #fff; }
.flow-contrast .flow-new .flow-mark { color: var(--accent); }
.flow-contrast .flow-new b { color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
    .flow-steps { flex-direction: column; gap: 30px; }
    .flow-step { padding: 24px 22px; }
    .flow-step::after { content: "\2193"; right: 50%; top: auto; bottom: -27px; transform: translateX(50%); }
    .flow-step:last-child::after { content: none; }
}

/* ---- evidence proof card (real-numbers Margin Check, audience-tailored) ---- */
.proof-wrap { max-width: 940px; margin: 30px auto 0; }
.proof-card { background: var(--ink); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 8px 8px 0 var(--accent); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-deep); padding: 12px 20px; }
.pc-title { font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-size: 13px; }
.pc-meta { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: rgba(255,255,255,.92); }
.pc-ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ink-3); border: 1px dashed var(--accent); border-radius: 10px; margin: 18px 20px 0; padding: 14px 18px; }
.pc-ask-q { color: #fff; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15.5px; }
.pc-ask-v { color: var(--accent); font-family: "Archivo", sans-serif; font-weight: 800; font-size: 24px; }
.pc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 20px; }
.pc-tile { background: var(--ink-3); border: 1px solid var(--line-ink); border-radius: 10px; padding: 12px 16px; }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; }
.pc-row span { color: var(--muted-ink); font-size: 12.5px; }
.pc-row b { color: #fff; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 17px; }
.pc-row .pc-q { font-style: italic; font-size: 12px; color: #fff; font-weight: 600; }
.pc-result { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--accent-deep); margin: 0 20px 20px; border-radius: 10px; padding: 18px 22px; }
.pc-result-h { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: .06em; color: #fff; font-size: 15px; margin-bottom: 4px; }
.pc-result-sub { color: #fff; font-size: 13.5px; line-height: 1.45; }
.pc-result-note { color: rgba(255,255,255,.85); font-size: 12px; margin-top: 3px; }
.pc-big { font-family: "Archivo", sans-serif; font-weight: 800; color: #fff; font-size: 46px; line-height: 1; text-align: right; white-space: nowrap; }
.pc-big span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); margin-top: 5px; }
.pc-foot { text-align: center; color: var(--muted); font-style: italic; font-size: 13.5px; margin: 18px auto 0; max-width: 660px; }
@media (max-width: 760px) {
    .pc-tiles { grid-template-columns: 1fr; }
    .pc-result { flex-direction: column; align-items: flex-start; }
    .pc-big { text-align: left; font-size: 40px; }
}

/* ---- home: full "true broker transparency" flow (sources -> verify -> Margin Check -> outputs) ---- */
.tflow-head { text-align: center; max-width: 720px; margin: 0 auto; }
.tflow-eyebrow { font-family: "Archivo Black", "Oswald", sans-serif; font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; letter-spacing: .01em; line-height: 1.0; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.tflow-head h2 { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; color: var(--ink); margin: 0; }
.tflow-sub { color: var(--muted); font-size: 16px; margin: 10px auto 0; }
.tflow-label { font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin: 30px 0 12px; }
.tflow-row { display: flex; gap: 16px; align-items: stretch; }
.tflow-card { flex: 1 1 0; background: var(--ink-3); border: 2px solid transparent; border-radius: 12px; padding: 18px 16px; text-align: center; box-shadow: 4px 4px 0 rgba(22,22,22,.14); }
.tflow-card.is-key { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.tflow-card h4 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 16px; color: #fff; margin: 0 0 6px; }
.tflow-card.is-key h4 { color: var(--accent); }
.tflow-card p { color: var(--muted-ink); font-size: 12.5px; line-height: 1.45; margin: 0; }
.tflow-arrows { display: flex; padding: 8px 0; }
.tflow-arrows span { flex: 1 1 0; text-align: center; color: var(--accent); font-size: 20px; font-weight: 700; }
.tflow-arrow-c { text-align: center; color: var(--accent); font-size: 20px; font-weight: 700; padding: 6px 0; }
.tflow-verify { background: var(--ink); color: #fff; border-radius: 10px; padding: 15px 20px; text-align: center; font-size: 14px; }
.tflow-verify b { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) {
    .tflow-row { flex-direction: column; }
    .tflow-arrows { display: none; }
}

/* ---- auth pages (Login / Register / password flows) — branded centered card ---- */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.auth-top {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 28px; background: var(--ink); border-bottom: 1px solid var(--line-ink);
}
/* brand badge (.mark) is styled globally — shared across all layouts */
.auth-brand:hover { text-decoration: none; }
.auth-back { color: var(--muted-ink); font-size: 14px; }
.auth-back:hover { color: #fff; text-decoration: none; }

.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 14px; }
.auth-card {
    width: 100%; max-width: 460px; background: var(--paper-card); border: 2px solid var(--ink);
    border-radius: 6px; padding: 34px 32px; box-shadow: 8px 8px 0 rgba(22,22,22,.92);
}
.auth-foot { font-size: 12px; color: var(--muted); text-align: center; }

.auth-card h1 { font-size: 1.9rem; line-height: 1.1; margin: 0 0 .2rem; }
.auth-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.3rem; }
.auth-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.auth-field > label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.auth-field .form-control, .auth-input {
    padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink); font-family: inherit; font-size: 1rem; width: 100%;
}
.auth-field .form-control:focus, .auth-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.auth-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.auth-check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin: .1rem 0 1rem; }
.auth-or { text-align: center; color: var(--muted); font-size: .8rem; margin: 1rem 0 .6rem; }
.auth-links { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.auth-vmsg, .auth-card .text-danger { color: var(--bad); font-size: .82rem; }

/* ---- minimal branded shell (default layout — Manage settings, misc) — no template nav ---- */
.simple-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.simple-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    height: 64px; padding: 0 28px; background: var(--ink); border-bottom: 1px solid var(--line-ink);
}
.simple-bar .brand { color: #fff; }
.simple-link { color: var(--muted-ink); font-size: 14px; }
.simple-link:hover { color: #fff; text-decoration: none; }
.simple-main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 2rem 28px; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }


/* ============ INDUSTRIAL LAYER ============ */
/* hazard-stripe top edge on the dark statement bands */
.voice-banner, .cw, .closer, .ab-closer, .ap-closer, .factor-band, .ab-hero, .ap-hero, .flow-band {
    position: relative;
}
.voice-banner::before, .cw::before, .closer::before, .ab-closer::before, .ap-closer::before, .factor-band::before, .flow-band::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
    background: repeating-linear-gradient(135deg, var(--accent) 0 16px, var(--ink) 16px 32px);
}

/* grade ticker (home) */
.ticker { background: var(--ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 11px 0; animation: ticker-scroll 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: #CFCFCB; margin: 0 26px; }
.ticker-track b { font-family: "Oswald", sans-serif; letter-spacing: .04em; }
.ticker-track .tg { color: #43D98B; } .ticker-track .tw { color: var(--accent); } .ticker-track .tb { color: #FF7B72; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* big stamped numbers for step/metric moments */
.stamp { font-family: "Archivo Black", "Archivo", sans-serif; }


/* ============ PHOTOGRAPHY LAYER ============ */
/* audience hero backgrounds — dark industrial overlay keeps type readable */
.ap-hero--brokers {
    background:
        linear-gradient(100deg, rgba(16,16,16,.95) 0%, rgba(16,16,16,.84) 50%, rgba(16,16,16,.62) 100%),
        url('/img/broker-dock.jpg') center 45% / cover no-repeat var(--ink);
}
.ap-hero--shippers {
    background:
        linear-gradient(100deg, rgba(16,16,16,.95) 0%, rgba(16,16,16,.84) 50%, rgba(16,16,16,.6) 100%),
        url('/img/shipper-warehouse.jpg') center 55% / cover no-repeat var(--ink);
}
.ap-hero--factoring {
    background:
        linear-gradient(100deg, rgba(16,16,16,.95) 0%, rgba(16,16,16,.85) 50%, rgba(16,16,16,.65) 100%),
        url('/img/shipper-containers.jpg') center 40% / cover no-repeat var(--ink);
}

/* framed photo strip — hard industrial frames + stamped captions */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.photo-strip figure { margin: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: 8px 8px 0 rgba(22,22,22,.92); transition: transform .15s ease, box-shadow .15s ease; }
.photo-strip figure:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 rgba(22,22,22,.92); }
.photo-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.82) contrast(1.07); }
.photo-strip figcaption { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink); color: #fff; font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.photo-strip figcaption::before { content: ""; width: 16px; height: 4px; background: var(--accent); flex-shrink: 0; }

/* ---- product mockup kit (shared by Home + audience-page hero vignettes) ----
   Every vignette uses FICTIONAL brokers only: names Census/SAFER-verified clean,
   MC/DOT numbers from the unissued 9-series — and carries the "Illustrative
   example" pill (members-only posture: real grades never on marketing surfaces). */
.lap-pill { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); border: 1px solid #EAD9B6; white-space: nowrap; }
.lap-caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; animation: lapblink 1.1s steps(1) infinite; }
@keyframes lapblink { 50% { opacity: 0; } }
.ev-chip { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ev-chip.ev-hi { background: var(--verified-soft); color: var(--verified); }
.ev-chip.ev-mid { background: var(--line); color: var(--ink); }
.ev-chip.ev-lo { background: var(--amber-soft); color: var(--amber); }
.reply-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verified); flex-shrink: 0; }
.viz { background: var(--paper-card); color: var(--text); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 8px 8px 0 rgba(22,22,22,.92); max-width: 520px; }
.viz-bar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 9px 14px; }
.viz-lbl { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.vz-search { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 14px; }
.vz-q { font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.vz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.vz-row:last-child { border-bottom: none; }
.vz-name { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.vz-mc { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.vz-grade { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.vz-grade.g-a { color: var(--verified); }
.vz-grade.g-c { color: var(--amber); }
.vz-figures { display: grid; grid-template-columns: repeat(3, 1fr); }
.vzf { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.vzf + .vzf { border-left: 1px solid var(--line); }
.vzf .k { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.vzf .v { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 17px; }
.vzf .v.warn { color: var(--amber); }
.vzf .v.good { color: var(--verified); }
.vz-flags { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.vz-flag { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border: 1px solid #EAD9B6; border-radius: 999px; padding: 4px 10px; }
.vz-acc { padding: 12px 14px; }
.vz-acc-row { font-size: 13.5px; }
.vz-acc-row b { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.vz-acc-row b.warn { color: var(--amber); }
.vz-acc-why { font-size: 12px; color: var(--muted); margin-top: 5px; font-style: italic; }
.vz-thread { padding: 8px 0; }
.vz-msg { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.vz-msg:last-child { border-bottom: none; }
.vz-who { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vz-what { font-size: 13.5px; }
.vz-broker { background: #fff; border-left: 3px solid var(--amber); }
.vz-broker .vz-who { color: var(--amber); }
.vz-op { border-left: 3px solid var(--verified); }
.vz-op .vz-who { color: var(--verified); }
.vz-input { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.vz-input .k { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vz-input .v { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; text-align: right; }
.vz-band { padding: 12px 14px; background: var(--amber-soft); color: #5A431B; font-size: 13px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.vz-band--good { background: var(--verified-soft); color: var(--verified); }
.vz-note { padding: 11px 14px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--muted); background: #fff; }
.vz-chip-live { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--verified-soft); color: var(--verified); white-space: nowrap; vertical-align: 1px; }
.vz-anon { padding: 12px 14px; background: var(--amber-soft); font-size: 12.5px; line-height: 1.5; color: #5A431B; border-bottom: 1px solid var(--line); }
.vz-anon b { color: #3A2E10; }
.vz-seg { display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.vz-seg span { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.vz-seg .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 2-col hero grid for the audience pages (ap-hero is the dark hero shell) */
.ap-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.ap-hero-grid .viz { justify-self: end; width: 100%; max-width: 480px; border-color: #000; box-shadow: 8px 8px 0 var(--accent); }
@media (max-width: 900px) { .ap-hero-grid { grid-template-columns: 1fr; gap: 40px; } .ap-hero-grid .viz { justify-self: start; } }
@media (max-width: 820px) { .photo-strip { grid-template-columns: 1fr; } }


/* ============ APP INDUSTRIAL ============ */
.app-bar { position: relative; }
.app-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
    background: repeating-linear-gradient(135deg, var(--accent) 0 14px, var(--ink) 14px 28px); }
.app-nav-link { font-family: "Oswald", sans-serif !important; text-transform: uppercase; letter-spacing: .07em; font-size: 13px; white-space: nowrap; }
/* NOTE: AppLayout.razor.css's .app-nav-link rules are DEAD — NavLink is a component, so Blazor CSS
   isolation never stamps these links with the scope attribute. Nav-link styling lives HERE. */
.app-nav-link.active { color: var(--accent) !important; }
.app-shell main h1:first-of-type { position: relative; padding-bottom: 12px; }
.app-shell main h1:first-of-type::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: var(--accent); }
