:root {
    --ink-950: #101723;
    --ink-900: #142033;
    --ink-800: #1d2e49;
    --ink-700: #294267;
    --text-200: #f4f7fb;
    --text-300: #d8e0ec;
    --text-500: #9badc5;
    --text-700: #4f627f;
    --text-900: #1b2434;
    --accent: #f2b35c;
    --accent-soft: #ffd7a1;
    --surface: #eef3f9;
    --surface-2: #ffffff;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-lg: 0 25px 65px rgba(10, 18, 33, 0.18);
    --shadow-soft: 0 10px 30px rgba(11, 20, 38, 0.1);
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'IBM Plex Sans', Inter, system-ui, sans-serif;
    --font-display: var(--font-heading);
    --font-ui: var(--font-body);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-900);
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

.muted {
    color: #4c6281;
}

.container {
    width: min(1220px, calc(100% - 3rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(29, 46, 73, 0.14);
}

.topbar-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-nav-shell {
    display: none;
}

.mobile-nav-toggle {
    margin-left: auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(11, 24, 44, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #17365d;
    transition: transform 180ms ease, opacity 180ms ease;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1390;
    border: 0;
    background: rgba(6, 13, 24, 0.52);
}

.mobile-nav-shell {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    z-index: 1400;
    pointer-events: none;
}

.mobile-nav-panel {
    height: 100%;
    margin-left: auto;
    background: linear-gradient(180deg, #fbfcff 0%, #f2f6fb 100%);
    box-shadow: -22px 0 48px rgba(8, 18, 33, 0.18);
    border-left: 1px solid rgba(29, 46, 73, 0.12);
    padding: 1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 220ms ease;
    pointer-events: auto;
    overflow-y: auto;
}

body.mobile-nav-open .mobile-nav-backdrop,
body.mobile-nav-open .mobile-nav-shell {
    display: block;
}

body.mobile-nav-open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-nav-brand {
    display: block;
    width: 220px;
    height: 42px;
    background: url('flex-dossier-logo2.png') left center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

.mobile-nav-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(29, 46, 73, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #17365d;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-links-list,
.mobile-nav-auth-list {
    display: grid;
    gap: 0.7rem;
}

.mobile-nav-links-list a,
.mobile-nav-auth-list a,
.mobile-nav-auth-list button {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
}

.mobile-nav-links-list a {
    background: #ffffff;
    color: #17365d;
    border: 1px solid rgba(29, 46, 73, 0.1);
}

.mobile-nav-links-list a.is-current {
    background: rgba(29, 46, 73, 0.08);
    border-color: rgba(29, 46, 73, 0.14);
}

.mobile-nav-auth {
    margin-top: auto;
    padding-top: 0.25rem;
}

.mobile-nav-auth-list {
    gap: 0.75rem;
}

.mobile-nav-auth-list .topbar-cta,
.mobile-nav-auth-list .topbar-ghost,
.mobile-nav-auth-list .topbar-logout {
    justify-content: center;
    text-align: center;
}

.brand {
    text-decoration: none;
    color: #102848;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.brand.brand-lockup {
    display: inline-block;
    width: min(100%, 440px);
    height: 82px;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    line-height: 0;
    border: none;
    border-radius: 0;
    background: url('flex-dossier-logo2.png') left center / auto 64px no-repeat;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    text-indent: -9999px;
}

.brand.brand-lockup::before {
    content: none;
    display: none;
}

.brand-name {
    font-size: 0.81rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #102848;
    line-height: 1.06;
}

.brand-descriptor {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #4f6583;
    line-height: 1.06;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.topnav.topnav-modern {
    gap: 0.55rem;
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.28rem 0.34rem;
    box-shadow: 0 12px 24px rgba(11, 24, 44, 0.06);
}

.topnav a {
    text-decoration: none;
    color: #48607f;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 0.36rem 0.68rem;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: #1d3f6b;
    background: rgba(29, 46, 73, 0.06);
}

.nav-explore {
    position: relative;
}

.nav-explore summary {
    list-style: none;
    cursor: pointer;
    color: #48607f;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 0.36rem 0.78rem 0.36rem 0.66rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-explore summary::-webkit-details-marker {
    display: none;
}

.nav-explore summary::after {
    content: "▾";
    font-size: 0.7rem;
    color: #577092;
}

.nav-explore[open] summary,
.nav-explore summary:hover,
.nav-explore summary:focus-visible {
    background: rgba(29, 46, 73, 0.06);
    color: #1d3f6b;
}

.nav-explore-menu {
    position: absolute;
    top: calc(100% + 0.42rem);
    left: 0;
    min-width: 190px;
    display: grid;
    gap: 0.2rem;
    border: 1px solid rgba(29, 46, 73, 0.16);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(11, 24, 44, 0.1);
    padding: 0.34rem;
    z-index: 1200;
}

.nav-explore-menu a {
    color: #355378;
    font-size: 0.85rem;
    padding: 0.5rem 0.58rem;
}

.topnav .nav-love-link {
    position: relative;
    border: 1px solid rgba(212, 85, 104, 0.45);
    border-radius: 999px;
    padding: 0.42rem 0.82rem 0.42rem 1.22rem;
    background: linear-gradient(120deg, rgba(255, 242, 245, 0.9), rgba(255, 248, 232, 0.9));
    color: #7f2c3c;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(212, 85, 104, 0.35);
    animation: nav-love-pulse 2.2s ease-out infinite;
}

.topnav .nav-love-link::before {
    content: "♥";
    position: absolute;
    left: 0.55rem;
    top: 0.34rem;
    font-size: 0.72rem;
    color: #d45568;
    animation: nav-heart-beat 1.6s ease-in-out infinite;
}

.topnav .nav-love-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-120%);
    animation: nav-love-shimmer 2.8s linear infinite;
    pointer-events: none;
}

.topnav .nav-love-link:hover,
.topnav .nav-love-link:focus-visible {
    border-color: rgba(212, 85, 104, 0.62);
    color: #6d2333;
    background: linear-gradient(120deg, rgba(255, 236, 241, 1), rgba(255, 244, 224, 1));
}

@keyframes nav-love-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 85, 104, 0.25); }
    70% { box-shadow: 0 0 0 8px rgba(212, 85, 104, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 85, 104, 0); }
}

@keyframes nav-heart-beat {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.18); }
    65% { transform: scale(0.96); }
}

@keyframes nav-love-shimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(160%); }
}

.topbar-cta {
    text-decoration: none;
    border: 1px solid rgba(29, 46, 73, 0.24);
    color: #17365d;
    border-radius: 999px;
    padding: 0.62rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
    background: rgba(29, 46, 73, 0.06);
}

.topbar-auth {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-ghost {
    border-color: rgba(29, 46, 73, 0.2);
    color: #4d6584;
}

.topbar-ghost:hover,
.topbar-ghost:focus-visible {
    color: #17365d;
    border-color: rgba(29, 46, 73, 0.34);
    background: rgba(29, 46, 73, 0.05);
}

.topbar-logout {
    border: 1px solid rgba(29, 46, 73, 0.24);
    background: transparent;
    color: #17365d;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
    border-color: rgba(29, 46, 73, 0.42);
    color: #0f2f54;
}

.manual-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.manual-account-chip {
    text-decoration: none;
    border: 1px solid rgba(29, 46, 73, 0.24);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.35rem 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.manual-account-chip:hover,
.manual-account-chip:focus-visible {
    border-color: rgba(29, 46, 73, 0.42);
}

.manual-avatar-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(100deg, #f2b35c, #f9c987);
    color: #1f2531;
    font-weight: 700;
    font-size: 0.72rem;
}

.manual-account-label {
    color: #17365d;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workspace-shell {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    border-top: 1px solid rgba(29, 46, 73, 0.1);
}

.workspace-shell-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem 0 2rem;
}

.workspace-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(12, 26, 45, 0.06);
    padding: 0.9rem;
}

.workspace-sidebar a {
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #27476f;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.5rem 0.58rem;
    margin-top: 0.32rem;
}

.workspace-sidebar a.status-link::after {
    content: attr(data-status);
    float: right;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 0.12rem 0.42rem;
    margin-top: 0.02rem;
}

.workspace-sidebar a.status-link.status-complete::after {
    color: #0e6c42;
    background: #eaf8ef;
    border: 1px solid rgba(14, 108, 66, 0.2);
}

.workspace-sidebar a.status-link.status-pending::after {
    color: #4f6785;
    background: #edf3fb;
    border: 1px solid rgba(76, 107, 145, 0.2);
}

.workspace-group {
    margin-top: 0.34rem;
    border: 1px solid rgba(29, 46, 73, 0.12);
    border-radius: 10px;
    background: #fbfdff;
    overflow: hidden;
}

.workspace-group summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    color: #24466e;
    padding: 0.55rem 0.62rem;
    position: relative;
}

.workspace-group summary::-webkit-details-marker {
    display: none;
}

.workspace-group summary::after {
    content: "▾";
    position: absolute;
    right: 0.65rem;
    top: 0.53rem;
    font-size: 0.8rem;
    color: #5c7392;
}

.workspace-group[open] summary::after {
    transform: rotate(180deg);
}

.workspace-subnav {
    display: grid;
    padding: 0 0.36rem 0.4rem;
}

.workspace-subnav a {
    margin-top: 0.28rem;
    font-size: 0.8rem;
    color: #36567e;
    border-radius: 8px;
    padding: 0.42rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.module-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

.module-progress-chip {
    font-size: 0.58rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.18rem 0.36rem;
    border: 1px solid transparent;
}

.module-progress-chip.is-done {
    color: #0e6c42;
    background: #eaf8ef;
    border-color: rgba(14, 108, 66, 0.2);
}

.module-progress-chip.is-pending {
    color: #4f6785;
    background: #edf3fb;
    border-color: rgba(76, 107, 145, 0.2);
}

.status-control-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(15, 61, 121, 0.18);
    border-radius: 10px;
    background: #f8fbff;
    margin-bottom: 0.7rem;
}

.status-control-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #3c5f86;
    margin-right: 0.2rem;
}

.status-control-pill {
    font-size: 0.62rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.2rem 0.42rem;
    border: 1px solid transparent;
}

.status-control-pill.is-done {
    color: #0e6c42;
    background: #eaf8ef;
    border-color: rgba(14, 108, 66, 0.2);
}

.status-control-pill.is-pending {
    color: #4f6785;
    background: #edf3fb;
    border-color: rgba(76, 107, 145, 0.2);
}

.status-compact-btn {
    padding: 0.26rem 0.48rem;
    font-size: 0.68rem;
    line-height: 1.2;
}

.workspace-sidebar a:hover,
.workspace-sidebar a:focus-visible,
.workspace-sidebar a.is-current {
    border-color: rgba(15, 61, 121, 0.24);
    background: #e8f0fb;
    color: #123a68;
}

.workspace-sidebar hr {
    border: 0;
    border-top: 1px solid rgba(29, 46, 73, 0.16);
    margin: 0.75rem 0;
}

.workspace-user {
    margin: 0;
    font-weight: 700;
    color: #183a63;
    font-size: 0.86rem;
}

.workspace-email {
    margin: 0.2rem 0 0;
    color: #5a718f;
    font-size: 0.78rem;
}

.workspace-advisory {
    margin: 0.75rem 0 0.4rem;
    border: 1px solid rgba(29, 46, 73, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    padding: 0.62rem;
}

.workspace-advisory-kicker {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #315b8a;
}

.workspace-advisory-balance {
    margin: 0.28rem 0 0;
    color: #173e6c;
    font-size: 0.84rem;
}

.workspace-advisory-balance strong {
    font-size: 1.02rem;
}

.workspace-advisory-detail {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: #5a718f;
    line-height: 1.45;
}

.workspace-advisory-label {
    margin-top: 0.5rem;
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #537092;
    font-weight: 700;
}

.workspace-advisory-notes {
    margin-top: 0.3rem;
    width: 100%;
    min-height: 84px;
    resize: vertical;
    border: 1px solid rgba(29, 46, 73, 0.2);
    border-radius: 10px;
    background: #ffffff;
    color: #1b2434;
    padding: 0.5rem;
    font: inherit;
    font-size: 0.79rem;
    line-height: 1.4;
}

.workspace-advisory-btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: #f3b760;
    border-color: #df9e42;
}

.workspace-advisory-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.workspace-advisory-link {
    margin-top: 0.45rem;
    display: inline-block;
    font-size: 0.74rem;
    color: #214b7a;
    font-weight: 700;
    text-decoration: none;
}

.workspace-advisory-link:hover,
.workspace-advisory-link:focus-visible {
    text-decoration: underline;
}

.workspace-advisory-message {
    margin: 0.4rem 0 0;
    font-size: 0.74rem;
    color: #284d79;
    line-height: 1.4;
}

.workspace-content .container {
    width: min(980px, calc(100% - 1.5rem));
}

.workspace-enabled .manual-shell {
    grid-template-columns: 1fr;
}

.workspace-enabled .manual-toc {
    display: none;
}

.workspace-enabled .chapter-shell {
    grid-template-columns: 1fr;
}

.workspace-enabled .chapter-nav {
    display: none;
}

.hero {
    position: relative;
    padding: 7.5rem 0 6.5rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(75, 103, 144, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 103, 144, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 10%, black 40%, transparent 80%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    color: #132846;
}

.eyebrow,
.kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #2b4f79;
}

.hero h1 {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.6vw, 4.9rem);
    line-height: 1.03;
    max-width: 14ch;
    letter-spacing: -0.01em;
}

.hero-lead {
    margin-top: 1.6rem;
    font-size: clamp(1.08rem, 1.8vw, 1.5rem);
    color: #314d73;
    max-width: 65ch;
}

.hero-support {
    margin-top: 1rem;
    color: #546c8d;
    max-width: 68ch;
    font-size: 1.02rem;
}

.session-pill {
    margin-top: 1rem;
    display: inline-flex;
    border: 1px solid rgba(29, 46, 73, 0.2);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: #355376;
    font-size: 0.8rem;
}

.session-pill[hidden] {
    display: none !important;
}

.cred-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cred-badge {
    display: inline-flex;
    border: 1px solid #cfddee;
    border-radius: 999px;
    background: #ffffff;
    color: #1e3557;
    padding: 0.38rem 0.66rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-ctas {
    display: flex;
    gap: 0.95rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.87rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 1.3rem;
    transition: transform 160ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-primary {
    background: linear-gradient(100deg, #f2b35c, #f9c987);
    color: #1f2531;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(201, 217, 240, 0.36);
    color: #1c3d68;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(29, 46, 73, 0.35);
    color: #14345d;
    background: rgba(29, 46, 73, 0.06);
}

.hero-signals {
    margin-top: 2.4rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-signals li {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(29, 46, 73, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.signal-label {
    display: block;
    color: #5a718f;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signal-value {
    display: block;
    margin-top: 0.4rem;
    color: #183457;
    font-size: 0.96rem;
}

main section:not(.hero) {
    position: relative;
    z-index: 3;
}

.premise,
.gateway,
.architecture,
.matrix,
.ecosystem,
.sequencing,
.decisions,
.faq,
.final-cta {
    background: var(--surface);
}

.premise,
.gateway,
.matrix,
.ecosystem,
.decisions {
    border-top: 1px solid rgba(30, 47, 73, 0.08);
}

.premise,
.gateway,
.architecture,
.matrix,
.ecosystem,
.sequencing,
.decisions,
.faq,
.final-cta {
    padding: 6.2rem 0;
}

.architecture,
.sequencing {
    background: linear-gradient(180deg, #f6f9fd 0%, #eaf1fa 100%);
}

.gateway {
    background:
        radial-gradient(circle at 0% 0%, rgba(242, 179, 92, 0.17) 0%, rgba(238, 243, 249, 0) 38%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
}

.gateway-shell {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 1.1rem;
    align-items: stretch;
}

.gateway-letter {
    border: 1px solid #d8e4f2;
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
}

.gateway-letter h2 {
    margin-top: 0.65rem;
    font-family: var(--font-display);
    line-height: 1.07;
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
    color: #132033;
}

.gateway-letter p {
    margin-top: 0.85rem;
    color: var(--text-700);
    max-width: 62ch;
}

.gateway-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.path-card {
    border: 1px solid #d8e4f2;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
    padding: 1rem;
    display: grid;
    align-content: start;
}

.path-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #577194;
    font-weight: 700;
}

.path-card h3 {
    margin-top: 0.45rem;
    color: #172a45;
    font-size: 1.08rem;
    line-height: 1.2;
}

.path-card p {
    margin-top: 0.6rem;
    color: #3f5676;
    font-size: 0.92rem;
}

.path-links {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.45rem;
}

.path-links a {
    text-decoration: none;
    border: 1px solid rgba(29, 46, 73, 0.2);
    background: #ffffff;
    color: #1f3352;
    border-radius: 999px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.42rem 0.6rem;
    display: inline-flex;
    width: fit-content;
}

.path-links a:hover,
.path-links a:focus-visible {
    border-color: rgba(29, 46, 73, 0.45);
    color: #14233c;
}

.saas-hero {
    background:
        radial-gradient(circle at 90% -8%, rgba(242, 179, 92, 0.2) 0%, rgba(248, 251, 255, 0) 38%),
        radial-gradient(circle at 0% 100%, rgba(89, 126, 179, 0.16) 0%, rgba(248, 251, 255, 0) 46%),
        linear-gradient(180deg, #f9fcff 0%, #edf3fb 100%);
}

.saas-hero-shell {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 0.85rem;
    align-items: center;
}

.saas-copy {
    color: #132846;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    pointer-events: none;
}

.hero-orb-a {
    right: 8%;
    top: 9rem;
    width: 220px;
    height: 220px;
    background: rgba(242, 179, 92, 0.2);
}

.hero-orb-b {
    left: 4%;
    top: 13rem;
    width: 170px;
    height: 170px;
    background: rgba(96, 134, 186, 0.16);
}

.hero-premium {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 82% 14%, rgba(181, 146, 89, 0.14) 0%, rgba(7, 14, 28, 0) 26%),
        radial-gradient(circle at 16% 78%, rgba(28, 51, 84, 0.26) 0%, rgba(7, 14, 28, 0) 34%),
        linear-gradient(145deg, #060d18 0%, #0a1423 46%, #101b2f 100%);
}

.hero-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(6, 13, 24, 0.9) 0%, rgba(6, 13, 24, 0.7) 36%, rgba(6, 13, 24, 0.9) 100%),
        url('img/photo_integrated_building.png');
    background-size: cover;
    background-position: center right;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.hero-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 60% 54%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, rgba(6, 13, 24, 0.04) 0%, rgba(6, 13, 24, 0.18) 54%, rgba(6, 13, 24, 0.28) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-premium .saas-hero-shell {
    position: relative;
    z-index: 1;
}

.hero-premium-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.9rem;
}

.hero-premium .saas-copy {
    max-width: 710px;
    color: #f8f7f4;
}

.hero-premium .eyebrow {
    color: #d8b46c;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.hero-premium .hero h1 {
    max-width: 11.1ch;
    font-size: clamp(3.1rem, 6.2vw, 6.3rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.hero-premium .hero-lead {
    max-width: 54ch;
    font-size: clamp(1.08rem, 1.55vw, 1.42rem);
    line-height: 1.48;
    color: rgba(248, 247, 244, 0.92);
}

.hero-premium .hero-tagline {
    color: rgba(217, 224, 235, 0.72);
    font-size: 1rem;
}

.hero-premium-signals {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.45rem;
}

.hero-premium-signals li {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(217, 180, 108, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 247, 244, 0.88);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-premium .hero-trust {
    color: rgba(248, 247, 244, 0.64);
}

.hero-premium .hero-trust-dot {
    background: #d8b46c;
    box-shadow: 0 0 0 4px rgba(216, 180, 108, 0.14);
}

.hero-premium .btn-cta-primary {
    background: linear-gradient(135deg, #f1c67f 0%, #d6a95c 100%);
    color: #101b2d;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.hero-premium .btn-cta-primary:hover,
.hero-premium .btn-cta-primary:focus-visible {
    filter: brightness(1.02);
}

.hero-premium .btn-cta-secondary {
    border-color: rgba(245, 241, 233, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f7f4;
}

.hero-premium .btn-cta-secondary:hover,
.hero-premium .btn-cta-secondary:focus-visible {
    border-color: rgba(245, 241, 233, 0.4);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.hero-mini-signals {
    margin-top: 1.15rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-mini-signals li {
    border: 1px solid rgba(29, 46, 73, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #1d406b;
    padding: 0.34rem 0.58rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.saas-panel {
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    color: #183457;
}

.saas-panel h2 {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.saas-stack {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.55rem;
}

.saas-stack section {
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.7rem;
}

.saas-stack h3 {
    font-size: 0.95rem;
    color: #183457;
}

.saas-stack p {
    margin-top: 0.35rem;
    color: #536b8d;
    font-size: 0.9rem;
}

.saas-link {
    margin-top: 0.8rem;
    display: inline-flex;
    text-decoration: none;
    border: 1px solid rgba(29, 46, 73, 0.25);
    border-radius: 999px;
    color: #1a3a64;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.saas-features,
.saas-pricing {
    background: var(--surface);
    border-top: 1px solid rgba(30, 47, 73, 0.08);
    padding: 5.2rem 0;
}

.saas-proof {
    background: linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
    border-top: 1px solid rgba(30, 47, 73, 0.08);
    padding: 4.8rem 0;
}

.proof-grid {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.proof-grid article {
    border: 1px solid #d7e3f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 0.95rem;
}

.proof-grid h3 {
    color: #182a45;
    font-size: 0.98rem;
}

.proof-grid p {
    margin-top: 0.5rem;
    color: #425b7b;
    font-size: 0.9rem;
}

.credibility-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.credibility-grid article {
    border: 1px solid #d7e3f2;
    border-radius: 14px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.cred-num {
    color: #1a2f50;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.3vw, 1.8rem);
    line-height: 1;
}

.credibility-grid h3 {
    margin-top: 0.45rem;
    color: #182a45;
    font-size: 0.98rem;
}

.credibility-grid p {
    margin-top: 0.45rem;
    color: #425b7b;
    font-size: 0.9rem;
}

.feature-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.feature-grid article {
    border: 1px solid #d7e3f2;
    border-radius: 14px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.feature-grid h3 {
    color: #182a45;
    font-size: 1rem;
}

.feature-grid p {
    margin-top: 0.55rem;
    color: #425b7b;
    font-size: 0.93rem;
}

.pricing-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.price-card {
    border: 1px solid #d5e1f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.price-card-pro {
    border-color: #f1c47f;
    background: linear-gradient(160deg, #fffdf8 0%, #fff4e4 100%);
}

.price-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b6484;
    font-weight: 700;
}

.price-card h3 {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1;
    color: #13253f;
}

.price-card h3 span {
    font-size: 0.95rem;
    color: #4c6382;
    margin-left: 0.2rem;
}

.price-sub {
    margin-top: 0.5rem;
    color: #445d7b;
}

.price-card ul {
    margin-top: 0.8rem;
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: #1f3452;
}

.price-card li {
    position: relative;
    padding-left: 1rem;
}

.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #f2b35c;
}

.plan-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.plan-form label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3d5677;
    font-weight: 700;
}

.plan-form input {
    border: 1px solid #c8d6e8;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    color: #1b2d48;
    background: #ffffff;
}

.a-la-carte-box {
    margin-top: 1rem;
    border: 1px solid #d7e3f2;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.a-la-carte-box h2 {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    color: #132a49;
    line-height: 1.14;
}

.a-la-carte-grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.a-la-carte-grid article {
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.8rem;
}

.a-la-carte-grid h3 {
    color: #183457;
    font-size: 0.95rem;
}

.a-la-carte-grid p {
    margin-top: 0.45rem;
    color: #435d7f;
    font-size: 0.88rem;
}

.module-upsell-card {
    border: 1px solid #d7e3f2;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.module-upsell-card h3 {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    color: #132a49;
    line-height: 1.14;
}

.module-upsell-list {
    margin-top: 0.75rem;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.module-upsell-list li {
    position: relative;
    padding-left: 0.92rem;
    color: #425d7d;
    font-size: 0.9rem;
}

.module-upsell-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: #1b4b84;
}

.section-headline-wrap {
    max-width: 900px;
}

.section-headline-wrap h2 {
    margin-top: 0.85rem;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    font-size: clamp(2rem, 4vw, 3.35rem);
    color: #132033;
}

.section-headline-wrap p {
    margin-top: 1rem;
    color: var(--text-700);
    max-width: 70ch;
}

.section-headline-wrap.compact h2 {
    max-width: 18ch;
}

.premise-panels {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.premise-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.premise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.premise-card ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.premise-card li {
    padding-left: 1.1rem;
    position: relative;
}

.premise-card li::before {
    content: "";
    position: absolute;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    left: 0;
    top: 0.45rem;
}

.premise-old {
    background: #fdfdff;
    border: 1px solid #e2e9f4;
}

.premise-old li::before {
    background: #8ca2c3;
}

.premise-new {
    background: linear-gradient(145deg, #16243a, #203657 70%);
    color: var(--text-200);
    border: 1px solid rgba(210, 224, 243, 0.14);
}

.premise-new h3 {
    color: var(--text-200);
}

.premise-new li {
    color: var(--text-300);
}

.premise-new li::before {
    background: var(--accent-soft);
}

.architecture-shell {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.architecture-console {
    margin-top: 1.8rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 320px 1fr;
}

.component-rail {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.component-tab {
    border: 1px solid #d9e3f1;
    background: #f8fbff;
    color: #203556;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.component-tab:hover,
.component-tab:focus-visible {
    border-color: #abc1e0;
}

.component-tab.is-active {
    background: #1a2d4a;
    color: var(--text-200);
    border-color: #1a2d4a;
}

.component-panel {
    background: linear-gradient(160deg, #16263d, #21385a 60%, #1f3455 100%);
    color: var(--text-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 500px;
}

.panel-index {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.component-panel h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    margin-top: 0.5rem;
}

.panel-definition {
    margin-top: 0.8rem;
    color: var(--text-300);
    max-width: 58ch;
}

.panel-grid {
    margin-top: 1.7rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.panel-grid section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(205, 220, 242, 0.18);
    border-radius: 12px;
    padding: 1rem;
}

.panel-grid h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-soft);
}

.panel-grid ul {
    margin-top: 0.8rem;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.panel-grid li {
    color: var(--text-300);
    font-size: 0.9rem;
    position: relative;
    padding-left: 0.85rem;
}

.panel-grid li::before {
    content: "";
    position: absolute;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(242, 179, 92, 0.95);
    left: 0;
    top: 0.42rem;
}

.matrix-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid #d8e3f1;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    text-align: left;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #e8eef7;
}

th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.73rem;
    color: #486182;
    background: #f7fafe;
}

td {
    color: #24364f;
    font-size: 0.93rem;
}

.ecosystem {
    background: linear-gradient(180deg, #f4f8fd 0%, #edf4fc 100%);
}

.ecosystem-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecosystem-grid article {
    background: #ffffff;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    padding: 1.15rem 1.15rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.ecosystem-grid h3 {
    font-size: 1rem;
    color: #1a2c48;
}

.ecosystem-grid ul {
    margin-top: 0.65rem;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.ecosystem-grid li {
    font-size: 0.9rem;
    color: #4a6182;
    padding-left: 0.8rem;
    position: relative;
}

.ecosystem-grid li::before {
    content: "";
    position: absolute;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #f2b35c;
    left: 0;
    top: 0.45rem;
}

.timeline-shell {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid #d9e3f1;
    box-shadow: var(--shadow-soft);
    padding: 1.4rem;
}

.timeline-tabs {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.timeline-tab {
    border: 1px solid #d4e0ef;
    background: #f7fbff;
    color: #274368;
    border-radius: 999px;
    padding: 0.58rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.timeline-tab.is-active {
    border-color: #1d3150;
    background: #1d3150;
    color: #f2f7ff;
}

.timeline-panel {
    margin-top: 1.2rem;
    padding: 0.2rem 0.2rem 0.4rem;
}

.timeline-panel h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.3vw, 2.2rem);
    line-height: 1.12;
    color: #15233a;
}

.timeline-panel ul {
    margin-top: 1rem;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.timeline-panel li {
    border-left: 3px solid #f2b35c;
    padding: 0.4rem 0.9rem;
    background: #fbfdff;
    color: #314662;
}

.decision-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-grid article {
    background: #ffffff;
    border: 1px solid #d9e3f1;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.decision-grid h3 {
    font-size: 1.06rem;
    color: #192b46;
}

.decision-grid p {
    margin-top: 0.62rem;
    color: #4e6584;
    font-size: 0.93rem;
}

.faq {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
    border-top: 1px solid rgba(30, 47, 73, 0.08);
}

.faq-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.8rem;
}

.faq-list details {
    background: #ffffff;
    border: 1px solid #d9e3f1;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.85rem 1rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: #1a2e4b;
    list-style: none;
    position: relative;
    padding-right: 1.4rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: #557296;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    margin-top: 0.6rem;
    color: #4a6182;
    font-size: 0.93rem;
}

.final-cta {
    background: linear-gradient(180deg, #f0f5fb 0%, #e2ebf7 100%);
}

.final-cta-inner {
    text-align: center;
    max-width: 860px;
}

.final-cta-inner h2 {
    margin-top: 0.85rem;
    font-family: var(--font-display);
    line-height: 1.1;
    font-size: clamp(1.8rem, 3.8vw, 3.1rem);
    color: #13233a;
}

.final-cta-inner p {
    margin-top: 1rem;
    color: #3e5473;
}

.partner-lockup {
    margin: 1.3rem auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #3a4f6f;
    border: 1px solid #c0cee2;
    background: rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    padding: 0.5rem 0.9rem 0.5rem 0.7rem;
}

.partner-lockup:hover,
.partner-lockup:focus-visible {
    border-color: #7f96b7;
    background: rgba(255, 255, 255, 0.9);
}

.partner-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.partner-lockup img {
    height: 28px;
    width: auto;
    display: block;
}

.final-cta .hero-ctas {
    justify-content: center;
}

.final-cta .btn-secondary {
    border: 2px solid #2a4162;
    color: #172a43;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(18, 32, 52, 0.12);
}

.final-cta .btn-secondary:hover,
.final-cta .btn-secondary:focus-visible {
    border-color: #13243b;
    color: #101f33;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 32, 52, 0.18);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.component-panel,
.timeline-panel {
    transition: opacity 260ms ease, transform 260ms ease;
}

.component-panel.is-refreshing,
.timeline-panel.is-refreshing {
    opacity: 0.5;
    transform: translateY(3px);
}

.site-footer {
    padding: 4rem 0 2rem;
    background: #0f1624;
    color: #9fb2cd;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #9fb2cd;
    font-size: 0.86rem;
}

.footer-inner a {
    color: var(--accent-soft);
    text-decoration: none;
}

/* ── Tier 2: Quote pull-out (About page) ── */
.quote-pullout-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quote-pullout-shell {
    max-width: 820px;
    text-align: center;
    position: relative;
}

.quote-pullout-mark {
    font-family: var(--font-display);
    font-size: 7rem;
    color: var(--brand-accent, #f2b35c);
    line-height: 0.7;
    margin: 0 0 1rem;
    font-weight: 600;
    opacity: 0.85;
}

.quote-pullout-text {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.4;
    color: #0e2240;
    font-weight: 500;
    letter-spacing: -0.005em;
    margin: 0 0 2rem;
    quotes: none;
}

.quote-pullout-text::before,
.quote-pullout-text::after {
    content: none;
}

.quote-pullout-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quote-pullout-line {
    width: 56px;
    height: 2px;
    background: var(--brand);
    opacity: 0.6;
}

.quote-pullout-byline {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.3;
}

.quote-pullout-byline strong {
    font-size: 0.95rem;
    color: #0e2240;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.quote-pullout-byline span {
    font-size: 0.78rem;
    color: var(--muted, #5b7595);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 600px) {
    .quote-pullout-mark { font-size: 5rem; }
    .quote-pullout-text { font-size: 1.25rem; }
}

/* ── Tier 2: Rich 3-column footer ── */
.site-footer-rich {
    padding: 4.5rem 0 2rem;
}

.footer-rich-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
    font-weight: 600;
}

.footer-brand-tagline {
    font-style: italic;
    color: #c8d4e8;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    max-width: 36ch;
}

.footer-built-by {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #9fb2cd;
}

.footer-built-by-img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 3px 6px;
}

.footer-built-by-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.footer-built-by-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7d96b8;
}

.footer-built-by-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #c8d4e8;
}

.footer-col-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7d96b8;
    margin: 0 0 1rem;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link-list a {
    color: #c8d4e8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 150ms ease;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-rich-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.78rem;
    color: #7d96b8;
    margin: 0;
}

.footer-meta-line {
    font-size: 0.78rem;
    color: #7d96b8;
    margin: 0;
}

@media (max-width: 880px) {
    .footer-rich-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .footer-rich-grid {
        grid-template-columns: 1fr;
    }
    .footer-rich-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #b5c6dd;
}

.footer-partner span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.footer-partner img {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.92;
}

body.workspace-enabled .site-footer {
    display: none;
}

.workspace-footer {
    margin: 0 0 1rem;
}

.workspace-footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f4f8fe);
    box-shadow: 0 12px 26px rgba(11, 24, 44, 0.08);
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.workspace-footer-brand {
    display: inline-block;
    width: min(100%, 320px);
    height: 60px;
    text-decoration: none;
    color: transparent;
    font-size: 0;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: url('flex-dossier-logo2.png') left center / contain no-repeat;
    overflow: hidden;
    text-indent: -9999px;
}

.workspace-footer-brand::before {
    content: none;
    display: none;
}

.workspace-footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #506785;
    font-size: 0.78rem;
}

.workspace-footer-link {
    text-decoration: none;
    border: 1px solid rgba(29, 46, 73, 0.14);
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    color: #2a4a72;
    font-weight: 600;
}

.workspace-footer-link:hover,
.workspace-footer-link:focus-visible {
    border-color: rgba(15, 61, 121, 0.45);
    color: #123a68;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .component-panel,
    .timeline-panel,
    .btn-primary,
    .btn-secondary,
    .topnav .nav-love-link,
    .topnav .nav-love-link::before,
    .topnav .nav-love-link::after {
        transition: none;
        transform: none;
        animation: none;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }

    .topnav:not(.topnav-modern) {
        display: none;
    }

    .topnav.topnav-modern {
        display: none;
    }

    .topbar-auth {
        display: none;
    }

    .architecture-console {
        grid-template-columns: 1fr;
    }

    .component-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .hero-signals {
        grid-template-columns: 1fr;
    }

    .saas-hero-shell {
        max-width: 100%;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .credibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .a-la-carte-grid {
        grid-template-columns: 1fr;
    }


    .gateway-shell {
        grid-template-columns: 1fr;
    }

    .gateway-paths {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-shell-inner {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(1220px, calc(100% - 1.5rem));
    }

    .topbar-inner {
        min-height: 76px;
    }

    .topnav.topnav-modern {
        display: none;
    }

    .brand {
        font-size: 0.8rem;
    }

    .brand.brand-lockup {
        width: min(100%, 280px);
        height: 64px;
        background-size: auto 46px;
    }

    .brand.brand-lockup::before {
        content: none;
        display: none;
    }

    .brand-descriptor {
        display: none;
    }

    .topbar-cta {
        font-size: 0.7rem;
        padding: 0.55rem 0.7rem;
    }

    .topbar-auth {
        gap: 0.35rem;
    }

    .topbar-ghost {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .manual-account-label {
        display: none;
    }

    .manual-account-chip {
        padding-right: 0.4rem;
    }

    .workspace-content .container {
        width: min(980px, calc(100% - 1rem));
    }

    .hero {
        padding-top: 5.2rem;
        padding-bottom: 4.6rem;
    }

    .hero-premium .hero h1 {
        max-width: 8.5ch;
        font-size: clamp(2.85rem, 13vw, 4.4rem);
        line-height: 0.94;
    }

    .hero-premium .hero-lead,
    .hero-tagline,
    .final-cta-inner p,
    .feature-row-copy p,
    .feature-row-detail {
        font-size: 0.97rem !important;
        line-height: 1.6;
    }

    .hero-ctas-modern,
    .final-cta .hero-ctas {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.1rem;
    }

    .hero-trust {
        line-height: 1.5;
    }

    .dossier-hero {
        max-width: 100%;
    }

    .dossier-hero-cover h3 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .dossier-hero-summary {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .dossier-hero-page {
        grid-template-columns: auto 1fr;
    }

    .page-state {
        grid-column: 2;
        justify-self: start;
        align-self: start;
        margin-top: 0.28rem;
    }

    .feature-row-visual .screenshot-placeholder {
        max-width: 100%;
    }

    .screenshot-placeholder {
        min-height: 220px;
        padding: 2rem 1.1rem 1.35rem;
    }

    .section-headline-wrap.compact h2,
    .final-cta-inner h2 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.02;
    }

    .targeting-band-label {
        width: 100%;
    }

    .targeting-band-audience {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .footer-rich-grid {
        gap: 1.6rem;
        padding-bottom: 2rem;
    }

    .hero-mini-signals {
        gap: 0.35rem;
    }

    .hero-mini-signals li {
        font-size: 0.68rem;
    }

    .credibility-grid {
        grid-template-columns: 1fr;
    }

    .gateway,
    .premise,
    .architecture,
    .matrix,
    .ecosystem,
    .sequencing,
    .decisions,
    .faq,
    .final-cta {
        padding: 4rem 0;
    }

    .premise-panels,
    .feature-grid,
    .gateway-paths,
    .panel-grid,
    .ecosystem-grid,
    .decision-grid {
        grid-template-columns: 1fr;
    }

    .component-rail {
        grid-template-columns: 1fr;
    }

    .architecture-shell {
        border-radius: 18px;
        padding: 1rem;
    }

    .component-panel {
        min-height: 0;
        padding: 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
    }

    .workspace-footer-inner {
        width: min(1180px, calc(100% - 1rem));
        display: grid;
        justify-items: start;
        gap: 0.65rem;
    }

}

/* -------------------------------------------------------------------------
   Marketing Brand Alignment (CoworkingConsulting Cohesion)
   ------------------------------------------------------------------------- */
:root {
    --cc-navy: #02042d;
    --cc-charcoal: #1b1e23;
    --cc-gold: #d4b980;
    --cc-gold-strong: #c8a55e;
    --cc-offwhite: #f7f7f5;
    --cc-panel: #ffffff;
    --cc-border: #d9dde4;
}

body:not(.workspace-enabled) {
    background: var(--cc-offwhite);
    color: #111827;
}

body:not(.workspace-enabled) .topbar {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--cc-border);
}

body:not(.workspace-enabled) .brand.brand-lockup {
    width: min(100%, 440px);
    height: 82px;
    border: none;
    border-radius: 0;
    background: url('flex-dossier-logo2.png') left center / auto 64px no-repeat;
    box-shadow: none;
    overflow: hidden;
    text-indent: -9999px;
}

body:not(.workspace-enabled) .brand.brand-lockup::before {
    content: none;
    display: none;
}

body:not(.workspace-enabled) .topnav.topnav-modern {
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 4, 45, 0.06);
    padding: 0.24rem 0.3rem;
}

body:not(.workspace-enabled) .topnav a,
body:not(.workspace-enabled) .nav-explore summary {
    border-radius: 6px;
    color: #28354d;
}

body:not(.workspace-enabled) .topnav a:hover,
body:not(.workspace-enabled) .topnav a:focus-visible,
body:not(.workspace-enabled) .nav-explore summary:hover,
body:not(.workspace-enabled) .nav-explore summary:focus-visible,
body:not(.workspace-enabled) .nav-explore[open] summary {
    background: #f2f4f8;
    color: #0f172a;
}

body:not(.workspace-enabled) .nav-explore-menu {
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(2, 4, 45, 0.1);
}

body:not(.workspace-enabled) .topbar-cta {
    border-radius: 6px;
    border: 1px solid var(--cc-gold);
    background: var(--cc-gold);
    color: var(--cc-navy);
    letter-spacing: 0.06em;
}

body:not(.workspace-enabled) .topbar-cta:hover,
body:not(.workspace-enabled) .topbar-cta:focus-visible {
    background: var(--cc-gold-strong);
    border-color: var(--cc-gold-strong);
}

body:not(.workspace-enabled) .topbar-ghost,
body:not(.workspace-enabled) .topbar-logout {
    background: #ffffff;
    border: 1px solid var(--cc-border);
    color: #28354d;
}

body:not(.workspace-enabled) .hero,
body:not(.workspace-enabled) .saas-hero {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(2, 4, 45, 0.94), rgba(2, 4, 45, 0.82)),
        radial-gradient(circle at 20% 20%, rgba(212, 185, 128, 0.25), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(40, 61, 108, 0.45), transparent 38%);
}

body:not(.workspace-enabled) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(2, 4, 45, 0.52), rgba(2, 4, 45, 0.36)),
        var(--hero-photo, none);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

body:not(.workspace-enabled) .hero-grid-bg {
    mask-image: none;
    background:
        linear-gradient(rgba(212, 185, 128, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 185, 128, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
}

body:not(.workspace-enabled) .hero-inner,
body:not(.workspace-enabled) .saas-copy {
    color: #ffffff;
    z-index: 2;
}

body:not(.workspace-enabled) .eyebrow,
body:not(.workspace-enabled) .kicker {
    color: var(--cc-gold);
}

body:not(.workspace-enabled) .hero h1 {
    color: #ffffff;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body:not(.workspace-enabled) .hero-lead {
    color: rgba(255, 255, 255, 0.92);
}

body:not(.workspace-enabled) .hero-support {
    color: rgba(255, 255, 255, 0.76);
}

body:not(.workspace-enabled) .hero-mini-signals li,
body:not(.workspace-enabled) .cred-badge {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

body:not(.workspace-enabled) .saas-proof .cred-badge {
    border: 1px solid var(--cc-border);
    background: #ffffff;
    color: #243449;
}

body:not(.workspace-enabled) .btn-primary,
body:not(.workspace-enabled) .btn-secondary {
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(2, 4, 45, 0.2);
}

body:not(.workspace-enabled) .btn-primary {
    background: var(--cc-gold);
    color: var(--cc-navy);
    border: 1px solid var(--cc-gold);
}

body:not(.workspace-enabled) .btn-primary:hover,
body:not(.workspace-enabled) .btn-primary:focus-visible {
    background: var(--cc-gold-strong);
    border-color: var(--cc-gold-strong);
}

body:not(.workspace-enabled) .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

body:not(.workspace-enabled) .btn-secondary:hover,
body:not(.workspace-enabled) .btn-secondary:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body:not(.workspace-enabled) .final-cta .btn-secondary {
    border: 1px solid #cfd6e2;
    background: #ffffff;
    color: #223248;
}

body:not(.workspace-enabled) .final-cta .btn-secondary:hover,
body:not(.workspace-enabled) .final-cta .btn-secondary:focus-visible {
    border-color: #9aa7bc;
    background: #ffffff;
    color: #0f172a;
}

body:not(.workspace-enabled) .saas-features,
body:not(.workspace-enabled) .saas-pricing,
body:not(.workspace-enabled) .saas-proof,
body:not(.workspace-enabled) .faq,
body:not(.workspace-enabled) .final-cta,
body:not(.workspace-enabled) .premise,
body:not(.workspace-enabled) .gateway,
body:not(.workspace-enabled) .architecture,
body:not(.workspace-enabled) .matrix,
body:not(.workspace-enabled) .ecosystem,
body:not(.workspace-enabled) .sequencing,
body:not(.workspace-enabled) .decisions {
    background: var(--cc-offwhite);
    border-top: 1px solid #e5e7eb;
}

body:not(.workspace-enabled) .section-headline-wrap h2,
body:not(.workspace-enabled) .final-cta-inner h2 {
    color: #0f172a;
}

body:not(.workspace-enabled) .section-headline-wrap p,
body:not(.workspace-enabled) .final-cta-inner p {
    color: #475569;
}

body:not(.workspace-enabled) .feature-grid article,
body:not(.workspace-enabled) .proof-grid article,
body:not(.workspace-enabled) .credibility-grid article,
body:not(.workspace-enabled) .price-card,
body:not(.workspace-enabled) .a-la-carte-box,
body:not(.workspace-enabled) .a-la-carte-grid article,
body:not(.workspace-enabled) .faq-list details,
body:not(.workspace-enabled) .module-upsell-card {
    background: var(--cc-panel);
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(2, 4, 45, 0.06);
}

body:not(.workspace-enabled) .price-card-pro {
    background: linear-gradient(165deg, #fffdfa 0%, #fdf6e9 100%);
    border-color: rgba(212, 185, 128, 0.5);
}

body:not(.workspace-enabled) .price-card li::before,
body:not(.workspace-enabled) .module-upsell-list li::before,
body:not(.workspace-enabled) .ecosystem-grid li::before {
    background: var(--cc-gold);
}

body:not(.workspace-enabled) .site-footer {
    background: var(--cc-charcoal);
    border-top: 2px solid var(--cc-gold);
}

body:not(.workspace-enabled) .footer-inner {
    color: #cbd5e1;
}

body:not(.workspace-enabled) .footer-partner span {
    color: #e2e8f0;
}

/* Premium homepage treatment */
body:not(.workspace-enabled) .topbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

body:not(.workspace-enabled) .topbar-inner {
    min-height: 82px;
}

body:not(.workspace-enabled) .brand.brand-lockup {
    width: min(100%, 520px);
    height: 96px;
    border: none;
    border-radius: 0;
    background: url('flex-dossier-logo2.png') left center / contain no-repeat;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
}

body:not(.workspace-enabled) .brand.brand-lockup::before {
    content: none;
    display: none;
}

body:not(.workspace-enabled) .brand-name {
    color: #0b1528;
}

body:not(.workspace-enabled) .brand-descriptor {
    color: #526174;
}

body:not(.workspace-enabled) .topnav.topnav-modern {
    border-radius: 6px;
    box-shadow: none;
    background: #ffffff;
}

body:not(.workspace-enabled) .topnav a {
    border-radius: 4px;
    color: #263449;
}

body:not(.workspace-enabled) .topbar-cta,
body:not(.workspace-enabled) .topbar-ghost {
    border-radius: 4px;
    box-shadow: none;
}

body:not(.workspace-enabled) .saas-hero {
    min-height: calc(100vh - 82px);
    padding: 6.4rem 0 5.8rem;
    display: flex;
    align-items: center;
}

body:not(.workspace-enabled) .saas-hero::before {
    opacity: 0.46;
    background-image:
        linear-gradient(90deg, rgba(4, 8, 22, 0.8), rgba(4, 8, 22, 0.55) 48%, rgba(4, 8, 22, 0.78)),
        var(--hero-photo, none);
    background-position: center;
}

body:not(.workspace-enabled) .saas-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 8, 22, 0) 0%, rgba(4, 8, 22, 0.62) 100%);
}

body:not(.workspace-enabled) .hero-grid-bg {
    opacity: 0.42;
    background-size: 56px 56px;
}

body:not(.workspace-enabled) .hero-orb {
    display: none;
}

body:not(.workspace-enabled) .saas-hero-shell {
    width: min(1220px, calc(100% - 3rem));
    max-width: none;
}

body:not(.workspace-enabled) .saas-copy {
    max-width: 730px;
}

body:not(.workspace-enabled) .saas-copy .eyebrow {
    color: #d7b56d;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

body:not(.workspace-enabled) .hero h1 {
    max-width: 11.6ch;
    font-size: clamp(3.25rem, 6.5vw, 6.8rem);
    line-height: 0.94;
    font-weight: 600;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

body:not(.workspace-enabled) .hero-lead {
    max-width: 52ch;
    font-size: clamp(1.18rem, 1.65vw, 1.55rem);
    line-height: 1.45;
}

body:not(.workspace-enabled) .hero-support {
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}

body:not(.workspace-enabled) .hero-mini-signals {
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    width: fit-content;
    max-width: 100%;
}

body:not(.workspace-enabled) .hero-mini-signals li {
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.58rem 0.78rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.84);
}

body:not(.workspace-enabled) .hero-mini-signals li:last-child {
    border-right: 0;
}

/* ── Tier 1: Light hero variants (drop the dark photo overlay) ── */
.hero-light::before {
    display: none !important;
}

.hero-light {
    padding: 6.5rem 0 5rem;
    background:
        radial-gradient(circle at 88% 6%, rgba(242, 179, 92, 0.18) 0%, rgba(248, 251, 255, 0) 36%),
        radial-gradient(circle at 4% 94%, rgba(89, 126, 179, 0.14) 0%, rgba(248, 251, 255, 0) 42%),
        linear-gradient(180deg, #fbfdff 0%, #eef4fc 100%);
}

.hero-light .hero-grid-bg {
    background:
        linear-gradient(rgba(15, 61, 121, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 61, 121, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 75%);
}

.hero-light .saas-copy {
    color: #0e2240;
}

.hero-light .eyebrow {
    color: #1f4f8a;
}

.hero-light .hero-lead {
    color: #2a4566;
}

.hero-light .hero-tagline {
    color: #5b7595;
}

/* Centered single-column hero variant */
.hero-centered .saas-hero-shell {
    text-align: center;
    grid-template-columns: 1fr;
    max-width: 900px;
}

.hero-centered .saas-copy {
    margin: 0 auto;
    max-width: 860px;
}

.hero-centered .hero h1 {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero-centered .hero-lead,
.hero-centered .hero-tagline,
.hero-centered .hero-support {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-lead {
    max-width: 52ch;
}

.hero-centered .hero-tagline {
    max-width: 46ch;
}

.hero-centered .hero-ctas {
    justify-content: center;
}

body:not(.workspace-enabled) .hero-centered > .container {
    width: min(980px, calc(100% - 2rem));
    max-width: 980px;
}

body:not(.workspace-enabled) .hero-centered .saas-hero-shell {
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

body:not(.workspace-enabled) .hero-centered .hero h1 {
    font-size: clamp(2.95rem, 5.2vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
}

body:not(.workspace-enabled) .hero-centered .hero-lead {
    font-size: clamp(1.02rem, 1.35vw, 1.24rem);
    line-height: 1.55;
}

body:not(.workspace-enabled) .hero-centered .hero-tagline {
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Two-column hero shell (homepage with Blueprint visual on right) */
@media (min-width: 940px) {
    .hero-shell-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
        max-width: 1180px;
        align-items: center;
    }

    .hero-shell-split .hero h1 {
        max-width: 14ch;
        font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    }

    .hero-shell-split .hero-lead {
        font-size: clamp(1rem, 1.4vw, 1.2rem);
    }
}

/* ── Tier 1: Modern CTA buttons ── */
.hero-ctas-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
    border: 1.5px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 61, 121, 0.28), 0 1px 3px rgba(15, 61, 121, 0.18);
}

.btn-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 61, 121, 0.34), 0 2px 4px rgba(15, 61, 121, 0.2);
    filter: brightness(1.06);
}

.btn-cta-primary:active {
    transform: translateY(0);
}

.btn-cta-secondary {
    background: #ffffff;
    color: #1f4f8a;
    border-color: rgba(15, 61, 121, 0.2);
}

.btn-cta-secondary:hover {
    border-color: rgba(15, 61, 121, 0.45);
    background: #f7faff;
    color: #0e3461;
    transform: translateY(-1px);
}

.btn-cta-arrow {
    display: inline-block;
    transition: transform 220ms ease;
    font-weight: 400;
}

.btn-cta:hover .btn-cta-arrow {
    transform: translateX(3px);
}

/* ── Tier 1: Trust line under hero CTAs ── */
.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    font-size: 0.84rem;
    color: #5b7595;
    line-height: 1.4;
}

.hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent, #f2b35c);
    flex-shrink: 0;
}

/* ── Tier 1: Targeting band ── */
.targeting-band {
    background: #ffffff;
    border-top: 1px solid rgba(15, 61, 121, 0.08);
    border-bottom: 1px solid rgba(15, 61, 121, 0.08);
    padding: 1rem 0;
}

.targeting-band-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    text-align: center;
}

.targeting-band-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5b7595;
}

.targeting-band-audience {
    font-size: 0.96rem;
    color: #1f3a5c;
    font-weight: 600;
}

@media (max-width: 720px) {
    .targeting-band-inner {
        flex-direction: column;
        gap: 0.4rem;
    }
}

.homepage-editorial-headline {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.2rem;
}

.homepage-editorial-headline p + p {
    margin-top: 0.8rem;
}

/* ── Tier 1: Side-by-side feature row ── */
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(15, 61, 121, 0.08);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-row-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-row-visual .screenshot-placeholder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.feature-row-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.feature-row-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: #0e2240;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.15;
}

.feature-row-copy p {
    color: #2a4566;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}

.feature-row-detail {
    color: #5b7595 !important;
    font-size: 0.92rem !important;
    border-left: 2px solid rgba(15, 61, 121, 0.18);
    padding-left: 0.85rem;
    margin-top: 1rem !important;
}

@media (max-width: 880px) {
    .feature-row, .feature-row-reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr;
        padding: 2rem 0;
    }
}

/* ── Tier 1: Screenshot placeholder ── */
.screenshot-placeholder {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(15, 61, 121, 0.025),
            rgba(15, 61, 121, 0.025) 12px,
            rgba(15, 61, 121, 0.05) 12px,
            rgba(15, 61, 121, 0.05) 24px
        ),
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    border: 2px dashed rgba(15, 61, 121, 0.2);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    transition: border-color 200ms ease;
}

.screenshot-placeholder:hover {
    border-color: rgba(15, 61, 121, 0.35);
}

.screenshot-stamp {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(15, 61, 121, 0.08);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.screenshot-label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #0e2240;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.screenshot-note {
    margin: 0;
    font-size: 0.85rem;
    color: #5b7595;
    line-height: 1.5;
    max-width: 340px;
}

/* ── Hero tagline (the architect's drawing set line) ── */
.hero-tagline {
    margin-top: 0.7rem;
    font-size: 1.0rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-tagline em {
    font-style: italic;
    font-family: var(--font-display);
}

/* ── Sample Blueprint preview (hero right panel) ── */
.blueprint-preview {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 24px 48px rgba(8, 24, 48, 0.32),
        0 8px 16px rgba(8, 24, 48, 0.18),
        0 0 0 1px rgba(15, 61, 121, 0.08);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 400ms ease;
}

.blueprint-preview:hover {
    transform: rotate(0deg) translateY(-4px);
}

.blueprint-preview-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
    color: #ffffff;
}

.blueprint-preview-stamp {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.95);
}

.blueprint-preview-rev {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

.blueprint-preview-body {
    padding: 1.4rem 1.4rem 1rem;
}

.blueprint-preview-asset {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(15, 61, 121, 0.2);
}

.blueprint-preview-kicker {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #5b7595;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.blueprint-preview-asset h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #0e2240;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.1;
}

.blueprint-preview-sub {
    font-size: 0.82rem;
    color: #5b7595;
    margin: 0;
    letter-spacing: 0.01em;
}

.blueprint-preview-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: blueprint-toc;
}

.blueprint-preview-toc li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted rgba(15, 61, 121, 0.12);
    font-size: 0.86rem;
    color: #1e3a5c;
}

.blueprint-preview-toc li:last-child {
    border-bottom: none;
}

.toc-num {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f3d79;
    background: rgba(15, 61, 121, 0.08);
    border-radius: 4px;
    padding: 0.18rem 0.4rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.toc-label {
    color: #1e3a5c;
    font-weight: 500;
}

.toc-status {
    font-size: 0.78rem;
    font-weight: 700;
    color: #157347;
    letter-spacing: 0.05em;
}

.blueprint-preview-toc li.toc-more .toc-status,
.blueprint-preview-toc li:nth-child(4) .toc-status,
.blueprint-preview-toc li:nth-child(5) .toc-status {
    color: rgba(15, 61, 121, 0.4);
}

.blueprint-preview-toc li.toc-more {
    color: var(--muted);
    font-style: italic;
}

.blueprint-preview-toc li.toc-more .toc-label {
    color: var(--muted);
    font-weight: 400;
}

.blueprint-preview-foot {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 1.4rem;
    background: #f6f9fd;
    border-top: 1px solid rgba(15, 61, 121, 0.08);
    font-size: 0.7rem;
    color: #5b7595;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Homepage Hero: Premium Dossier Object ── */
.dossier-hero {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.dossier-hero-surface {
    position: relative;
    padding: 0.95rem;
    border-radius: 24px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(14, 23, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 34px 72px rgba(0, 0, 0, 0.22),
        0 8px 22px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
}

.dossier-hero-surface::before,
.dossier-hero-surface::after {
    content: "";
    position: absolute;
    inset: 1rem 1rem 0.95rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 0;
}

.dossier-hero-surface::before {
    transform: rotate(-0.6deg) translate(-6px, 9px);
}

.dossier-hero-surface::after {
    inset: 1.35rem 1.25rem 1.1rem;
    transform: rotate(0.8deg) translate(7px, -5px);
}

.dossier-hero-header,
.dossier-hero-cover,
.dossier-hero-pages,
.dossier-hero-foot {
    position: relative;
    z-index: 1;
}

.dossier-hero-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.5rem 0.8rem;
    color: rgba(245, 243, 238, 0.82);
}

.dossier-hero-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f4d18a;
}

.dossier-hero-subline {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.56);
}

.dossier-hero-rev {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.52);
    white-space: nowrap;
}

.dossier-hero-cover {
    border-radius: 20px;
    padding: 1.1rem 1.15rem 1rem;
    background:
        linear-gradient(160deg, rgba(10, 19, 34, 0.98), rgba(18, 39, 69, 0.96)),
        #0a1324;
    border: 1px solid rgba(241, 198, 127, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dossier-hero-seal {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.8rem;
}

.dossier-hero-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.26));
}

.dossier-hero-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(241, 198, 127, 0.88);
}

.dossier-hero-cover h3 {
    margin: 0.45rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.9vw, 2.7rem);
    color: #f9f5ee;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.dossier-hero-sub {
    margin: 0.45rem 0 0;
    color: rgba(245, 243, 238, 0.76);
    font-size: 0.92rem;
}

.dossier-hero-rule {
    height: 1px;
    margin: 1.05rem 0 0.95rem;
    background: linear-gradient(90deg, rgba(241, 198, 127, 0.18), rgba(241, 198, 127, 0.52) 50%, rgba(241, 198, 127, 0.18));
}

.dossier-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dossier-hero-summary span {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.52);
}

.dossier-hero-summary strong {
    display: block;
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.dossier-hero-pages {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.dossier-hero-page {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: start;
    padding: 0.8rem 0.85rem;
    border-radius: 15px;
    background: rgba(243, 236, 224, 0.93);
    color: #14233c;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.dossier-hero-page.is-active {
    background: #f4ede0;
}

.dossier-hero-page h4 {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.25;
    color: #0e2240;
}

.dossier-hero-page p {
    margin: 0.22rem 0 0;
    font-size: 0.79rem;
    line-height: 1.45;
    color: #566b88;
}

.page-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    min-height: 2.15rem;
    border-radius: 8px;
    background: #e4dfd3;
    color: #112743;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page-state {
    align-self: center;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f6a51;
    white-space: nowrap;
}

.page-state.is-pending {
    color: #82643d;
}

.dossier-hero-foot {
    margin-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.45rem 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.6);
}

@media (max-width: 900px) {
    .blueprint-preview {
        margin-top: 2rem;
        transform: rotate(0deg);
        max-width: 100%;
    }
    .dossier-hero {
        margin-top: 1.4rem;
        max-width: 100%;
    }
    .dossier-hero-foot {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ── Full Blueprint document (showcase on /platform) ── */
.blueprint-document-shell {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 24px 60px rgba(8, 24, 48, 0.18),
        0 6px 16px rgba(8, 24, 48, 0.08),
        0 0 0 1px rgba(15, 61, 121, 0.06);
    overflow: hidden;
}

.blueprint-document-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, #0f3d79 0%, #1a5299 100%);
    color: #ffffff;
}

.blueprint-document-body {
    padding: 2rem 2rem 1.25rem;
}

.blueprint-document-cover {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(15, 61, 121, 0.2);
}

.blueprint-document-cover h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #0e2240;
    margin: 0.25rem 0 0.45rem;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.blueprint-document-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blueprint-document-toc li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px dotted rgba(15, 61, 121, 0.15);
}

.blueprint-document-toc li:last-child {
    border-bottom: none;
}

.blueprint-document-toc .toc-num {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f3d79;
    background: rgba(15, 61, 121, 0.08);
    border-radius: 6px;
    padding: 0.4rem 0;
    text-align: center;
    height: fit-content;
    letter-spacing: 0.02em;
}

.toc-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #0e2240;
    margin: 0 0 0.3rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.toc-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .blueprint-document-body { padding: 1.5rem 1.25rem 1rem; }
    .blueprint-document-toc li { grid-template-columns: 40px 1fr; gap: 0.7rem; }
}

/* ── Blueprint sections (mid-page artifact framing) ── */
.blueprint-pieces article {
    border-left: 3px solid var(--brand);
    padding-left: 1.25rem;
}

.blueprint-pieces article .kicker {
    color: var(--brand);
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.home-proof-board {
    position: relative;
    z-index: 2;
    align-self: center;
    color: #e8edf6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
        rgba(6, 13, 29, 0.62);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.proof-board-top,
.proof-board-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-board-top span,
.proof-board-footer span,
.proof-board-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
}

.proof-board-top strong {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d7b56d;
}

.proof-board-body {
    display: grid;
    gap: 0;
}

.proof-board-body section {
    padding: 1.2rem 1.1rem;
}

.proof-board-body section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-board-body h3 {
    margin-top: 0.4rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.1;
}

.proof-board-body dl {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.proof-board-body dt {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.proof-board-body dd {
    margin-top: 0.25rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.84rem;
}

.proof-board-body ul {
    margin-top: 0.8rem;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.proof-board-body li {
    position: relative;
    padding-left: 1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.proof-board-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.36rem;
    height: 1px;
    background: #d7b56d;
}

.proof-board-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
}

body:not(.workspace-enabled) .home-thesis,
body:not(.workspace-enabled) .home-product-proof {
    padding: clamp(5.5rem, 8vw, 8rem) 0;
}

.home-thesis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.market-signals-panel {
    border-left: 2px solid #d7b56d;
    padding-left: 1.4rem;
}

body:not(.workspace-enabled) .section-headline-wrap h2 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.98;
    max-width: 15ch;
}

body:not(.workspace-enabled) .section-headline-wrap p {
    font-size: 1.02rem;
    line-height: 1.75;
}

body:not(.workspace-enabled) .proof-grid,
body:not(.workspace-enabled) .feature-grid {
    gap: 1rem;
    margin-top: 2rem;
}

body:not(.workspace-enabled) .proof-grid article,
body:not(.workspace-enabled) .feature-grid article {
    border-radius: 6px;
    box-shadow: none;
    padding: 1.25rem;
}

body:not(.workspace-enabled) .proof-grid h3,
body:not(.workspace-enabled) .feature-grid h3 {
    font-size: 1.04rem;
}

body:not(.workspace-enabled) .proof-grid p,
body:not(.workspace-enabled) .feature-grid p {
    font-size: 0.95rem;
    line-height: 1.62;
}

.product-flow-strip {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.product-flow-strip article {
    padding: 1.35rem;
    min-height: 150px;
}

.product-flow-strip article + article {
    border-left: 1px solid #d8dee8;
}

.product-flow-strip span {
    color: #b79755;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.product-flow-strip h3 {
    margin-top: 0.62rem;
    color: #101827;
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.product-flow-strip p {
    margin-top: 0.5rem;
    color: #475569;
    line-height: 1.55;
}

body:not(.workspace-enabled) .elevated-grid {
    margin-top: 1rem;
}

body:not(.workspace-enabled) .final-cta {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 1));
    padding: clamp(6rem, 9vw, 9rem) 0;
}

body:not(.workspace-enabled) .final-cta-inner h2 {
    max-width: 19ch;
    margin-inline: auto;
    font-size: clamp(2.4rem, 4.8vw, 4.4rem);
    line-height: 0.98;
}

@media (max-width: 980px) {
    body:not(.workspace-enabled) .saas-hero-shell,
    .home-thesis-grid,
    .product-flow-strip {
        grid-template-columns: 1fr;
    }

    .home-proof-board {
        max-width: 560px;
    }

    .product-flow-strip article + article {
        border-left: 0;
        border-top: 1px solid #d8dee8;
    }
}

@media (max-width: 680px) {
    body:not(.workspace-enabled) .saas-hero {
        min-height: auto;
        padding: 4.5rem 0 3.8rem;
    }

    body:not(.workspace-enabled) .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.6rem);
    }

    .home-proof-board {
        display: none;
    }

    body:not(.workspace-enabled) .hero-mini-signals {
        display: grid;
        width: 100%;
    }

    body:not(.workspace-enabled) .hero-mini-signals li {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    body:not(.workspace-enabled) .hero-mini-signals li:last-child {
        border-bottom: 0;
    }
}
